#include "ShaderBase.h"

namespace glow {

ShaderBase::ShaderBase(GLenum type, GLuint shader, const char *name) :
IResource(name), _type(type), _shader(shader)
{
}

ShaderBase::~ShaderBase()
{
  glDeleteObjectARB(_shader);
}

GLenum ShaderBase::getType() const
{
    return _type;
}

GLuint ShaderBase::getGLID() const
{
    return _shader;
}

}
